package com.computerroom.mapper;

import com.computerroom.pojo.ComputerRoom;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ComputerRoomMapper {

    /**
     * 获取机房列表
     * @param roomName
     * @return
     */
    List<ComputerRoom> select(@Param("roomName") String roomName);


    /**
     * 添加
     * @param computerRoom
     * @return
     */
    int add(ComputerRoom computerRoom);

    /**
     * 详情
     * @param id
     * @return
     */
    ComputerRoom detail(Integer id);

    /**
     * 修改
     * @param computerRoom
     * @return
     */
    int update(ComputerRoom computerRoom);

    /**
     * 删除
     * @param id
     * @return
     */
    int delete(Integer id);


}
